#include <stdio.h>

struct preferences {
  const char *food;
  float exercise_hours;
};

struct fish {
  const char *name;
  const char *species;
  int teeth;
  int age;
  struct preferences care;
};
void catalog (struct fish f)
{
  printf("%s is %s with %i teeth. It's %i years old!\n", f.name, f.species, f.teeth, f.age);
}
void label (struct fish f)
{
  printf("name: %s\nspecies: %s\n%i years old\n%i teeth", f.name, f.species, f.age, f.teeth);
}

int main ()
{
  struct fish snappy = {"Snappy", "Pirania", 69, 4, {"meat ", 4.0}};
  catalog(snappy);
  label(snappy);
  printf("snappy likes to eat: %s\n", snappy.care.food);
  printf("Snappy trains for %f hours", snappy.care.exercise_hours);
}